package cn.yeamin.spring.boot.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @packageName: 包名: cn.yeamin.spring.boot.config
 * @classDesc: 类功能描述:(从application.properties文件获取一些常量配置)
 * @author: Administrator
 * @createTime: 2017/7/17 14:26
 * @version: v1.0
 * @copyright:奕明(上海)影视传媒有限公司
 */
@Component //当不好归类时,选择这个注解声明出一个Bean
@Data  //Lombok插件注解,默认生成Getter/Setter/equals/hashCode/toString方法
public class ConstantProperties {

    @Value("${cn.yeamin.name}")
    private String name;

    @Value("${cn.yeamin.age}")
    private Integer age;

    @Value("${cn.yeamin.desc}")
    private String desc;

    @Value("${cn.yeamin.value}")
    private String value;

    @Value("${cn.yeamin.number}")
    private Integer number;

    @Value("${cn.yeamin.bignumber}")
    private Long bignumber;

    @Value("${cn.yeamin.test1}")
    private Integer test1;

    @Value("${cn.yeamin.test2}")
    private Integer test2;
}
